Restore Window
AutomatR.Windows.Activities.RestoreWindow
The "Restore Window" activity in AutomatR facilitates the restoration of a specific window to its original size and position. This activity is particularly useful for managing and interacting with windows within automation workflows.
Properties
Name | Description |
---|---|
Input | |
Process Name | Enter the process name of the window application that needs to be restored. |
Process Title | Enter the process title of the window application that needs to be restored. |
Display Title | Enter the title of the window application that needs to be restored. |
Window | Enter the window variable for the application that needs to be restored. |
Misc | |
Display Name | Provides a customizable name for the activity displayed in the workflow. The display name enhances clarity and organization within the automation project. String variables containing the desired display name. |
Optional | |
Delay | Specifies the amount of time (in seconds) to wait before executing the "Restore Window" activity. This can be useful for handling synchronization issues. Integer variables containing the delay duration. Ex.: If the amount of time is 1000 milliseconds or 1 sec, i.e., 1. |
How to use:
- Drag and drop the "Restore Window" activity onto the workflow.
- Configure the properties by providing the necessary inputs such as process name, process title, display title, or window variable.
- Optionally, configure the delay.
- Execute the workflow to restore the specified window to its original size and position.
Example: Consider an example where the "Restore Window" activity is used to restore the window of an application named "MyApp" with a process title "MyAppTitle" and a display title "MyAppDisplayTitle":
Restore Window:
Process Name: "MyApp"
Process Title: "MyAppTitle"
Display Title: "MyAppDisplayTitle"
Delay: 2
In this example, the activity restores the window of the "MyApp" application to its original size and position after a delay of 2 seconds.